package com.example.health_life.dao;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface UserRepository extends JpaRepository<User,Integer> {
    List<User> findByUsername(String username);
    Optional<User> findByOpenid(String openid);
    Optional<User> findByPhone(String phone);
}
